import Vue from 'vue'
import App from './App'
import * as utils from 'api/utils.js'
Vue.prototype.$utils = utils

Vue.config.productionTip = false

import uView from "uview-ui"
Vue.use(uView)
// mescroll 全局下拉刷新组件
import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue"
import MescrollUni from "@/components/mescroll-uni/mescroll-uni.vue"
Vue.component('mescroll-body', MescrollBody)
Vue.component('mescroll-uni', MescrollUni)
import login from './api/login.js' // 登录js
Vue.prototype.$login = login
// #ifdef APP-PLUS
import IM from './api/IM.js' // 即时通信IM 初始化和登录
Vue.prototype.$IM = IM
// #endif


App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
